import flask
import student
import json

app = flask.Flask(__name__)

# 查看所有考勤數據
@app.route("/student/list")
def list():
    res = {}
    db = student.StudentDB()
    db.openDB();
    res = db.selectRows()
    db.closeDB()
    return json.dumps(res['data'])
